/**
 * Created by liubin on 2014/7/27.
 */

'use strict';

define(['angular', 'controllers', 'role/roleService'], function (angular, controllers) {
    controllers.controller('roleListCtrl', ['$scope', '$rootScope', 'userListService', function ($scope, $rootScope, userListService) {
        console.log('roleListCtrl');
        $scope.myData = [{id: 1, code: 'm1' , name: "Moroni"},
                 {id: 2, code: 'm2' , name: "Tiancum"},
                 {id: 3, code: 'm3' , name: "Jacob"},
                 {id: 4, code: 'm4' , name: "Nephi"},
                 {id: 5, code: 'm5' , name: "Enos"}];
        $scope.gridOptions = {
            data: 'myData',
            enablePaging: true,
            pagingOptions: {
                pageSizes: [20],
                pageSize: 20,
                totalServerItems: 0,
                currentPage: 1
            },
            showFooter: true,
            plugins: [new ngGridFlexibleHeightPlugin()],
            jqueryUITheme: true,
            showSelectionCheckbox: true
        };
    }]);

});
